require 'formula'

class Aspell < Formula
  homepage 'http://aspell.net/'
  url 'http://ftpmirror.gnu.org/aspell/aspell-0.60.6.1.tar.gz'
  mirror 'http://ftp.gnu.org/gnu/aspell/aspell-0.60.6.1.tar.gz'
  sha1 'ff1190db8de279f950c242c6f4c5d5cdc2cbdc49'

  resource 'af' do
    url 'http://ftpmirror.gnu.org/aspell/dict/af/aspell-af-0.50-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/af/aspell-af-0.50-0.tar.bz2'
    sha1 '9957b57df8da90f0498c558481b0e6b1ce70af66'
  end

  resource 'am' do
    url 'http://ftpmirror.gnu.org/aspell/dict/am/aspell6-am-0.03-1.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/am/aspell6-am-0.03-1.tar.bz2'
    sha1 '837579f3bb085b6c491fd913cb35a3076659d2ee'
  end

  resource 'ar' do
    url 'http://ftpmirror.gnu.org/aspell/dict/ar/aspell6-ar-1.2-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/ar/aspell6-ar-1.2-0.tar.bz2'
    sha1 '35038cca52a8acbd042e98b1b158e5d612a11a48'
  end

  resource 'ast' do
    url 'http://ftpmirror.gnu.org/aspell/dict/ast/aspell6-ast-0.01.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/ast/aspell6-ast-0.01.tar.bz2'
    sha1 '4ee3b1a73c31d24db46a6b30f60a659d5e12aa40'
  end

  resource 'az' do
    url 'http://ftpmirror.gnu.org/aspell/dict/az/aspell6-az-0.02-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/az/aspell6-az-0.02-0.tar.bz2'
    sha1 '1ffe8b9674706f46b9daab564760c86a7b6ac63f'
  end

  resource 'be' do
    url 'http://ftpmirror.gnu.org/aspell/dict/be/aspell5-be-0.01.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/be/aspell5-be-0.01.tar.bz2'
    sha1 'd4a00c3b4ce6e3629c87217e1e0c8a34b905a2b0'
  end

  resource 'bg' do
    url 'http://ftpmirror.gnu.org/aspell/dict/bg/aspell6-bg-4.1-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/bg/aspell6-bg-4.1-0.tar.bz2'
    sha1 '0388f430a14f974fab67eaa92ebba3068eec7248'
  end

  resource 'bn' do
    url 'http://ftpmirror.gnu.org/aspell/dict/bn/aspell6-bn-0.01.1-1.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/bn/aspell6-bn-0.01.1-1.tar.bz2'
    sha1 'c3adbfb8b6df04ba5cee2b25671f6119f86d67e5'
  end

  resource 'br' do
    url 'http://ftpmirror.gnu.org/aspell/dict/br/aspell-br-0.50-2.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/br/aspell-br-0.50-2.tar.bz2'
    sha1 'e6cbb638d7704e88c6d59b794829267b41a7e536'
  end

  resource 'ca' do
    url 'http://ftpmirror.gnu.org/aspell/dict/ca/aspell6-ca-2.1.5-1.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/ca/aspell6-ca-2.1.5-1.tar.bz2'
    sha1 'abce32e6dffa420b7ae90ac277038591e7c32a90'
  end

  resource 'cs' do
    url 'http://ftpmirror.gnu.org/aspell/dict/cs/aspell6-cs-20040614-1.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/cs/aspell6-cs-20040614-1.tar.bz2'
    sha1 '83756c070c1444f06c779a350d0bdad1d31e2b98'
  end

  resource 'csb' do
    url 'http://ftpmirror.gnu.org/aspell/dict/csb/aspell6-csb-0.02-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/csb/aspell6-csb-0.02-0.tar.bz2'
    sha1 '19640604cfe0035e14170d66653274779768bc3b'
  end

  resource 'cy' do
    url 'http://ftpmirror.gnu.org/aspell/dict/cy/aspell-cy-0.50-3.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/cy/aspell-cy-0.50-3.tar.bz2'
    sha1 '8a62c649cf99cd239449961a0d5f8942b1c02116'
  end

  resource 'da' do
    url 'http://ftpmirror.gnu.org/aspell/dict/da/aspell5-da-1.4.42-1.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/da/aspell5-da-1.4.42-1.tar.bz2'
    sha1 '8cc990c195707e2b4db4ed0969aa10117a3b6bb2'
  end

  resource 'de' do
    url 'http://ftpmirror.gnu.org/aspell/dict/de/aspell6-de-20030222-1.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/de/aspell6-de-20030222-1.tar.bz2'
    sha1 'a06b1153404f6d1f9bd8aa03d596c14093e561c7'
  end

  resource 'de_alt' do
    url 'http://ftpmirror.gnu.org/aspell/dict/de-alt/aspell6-de-alt-2.1-1.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/de-alt/aspell6-de-alt-2.1-1.tar.bz2'
    sha1 '114092feb634b309e78e25d7c81fa0521916833b'
  end

  resource 'el' do
    url 'http://ftpmirror.gnu.org/aspell/dict/el/aspell-el-0.50-3.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/el/aspell-el-0.50-3.tar.bz2'
    sha1 'f0242d02e45956f8fe5d8321d737ee4dc5d18931'
  end

  resource 'en' do
    url 'http://ftpmirror.gnu.org/aspell/dict/en/aspell6-en-7.1-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/en/aspell6-en-7.1-0.tar.bz2'
    sha1 'd45ccda0c03e2a679c2936487ec851a1896b8150'
  end

  resource 'eo' do
    url 'http://ftpmirror.gnu.org/aspell/dict/eo/aspell6-eo-2.1.20000225a-2.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/eo/aspell6-eo-2.1.20000225a-2.tar.bz2'
    sha1 '0996e0b553bcb5706b598a0256c49102eb489c34'
  end

  resource 'es' do
    url 'http://ftpmirror.gnu.org/aspell/dict/es/aspell6-es-1.11-2.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/es/aspell6-es-1.11-2.tar.bz2'
    sha1 '18acfa4bc08433e920bb015b158e43643e5125cf'
  end

  resource 'et' do
    url 'http://ftpmirror.gnu.org/aspell/dict/et/aspell6-et-0.1.21-1.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/et/aspell6-et-0.1.21-1.tar.bz2'
    sha1 '7376022dfea538be579d327db3a57696cce35e39'
  end

  resource 'fa' do
    url 'http://ftpmirror.gnu.org/aspell/dict/fa/aspell6-fa-0.11-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/fa/aspell6-fa-0.11-0.tar.bz2'
    sha1 '2d3427b9d274c0dbbcbbf78752afc19b1e31a41a'
  end

  resource 'fi' do
    url 'http://ftpmirror.gnu.org/aspell/dict/fi/aspell6-fi-0.7-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/fi/aspell6-fi-0.7-0.tar.bz2'
    sha1 '10235c88220f7b914a1d8af7b4d4e8e26b5d7c76'
  end

  resource 'fo' do
    url 'http://ftpmirror.gnu.org/aspell/dict/fo/aspell5-fo-0.2.16-1.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/fo/aspell5-fo-0.2.16-1.tar.bz2'
    sha1 'da3dab3261df65df6765ad7fb7a9078f1a33d0ee'
  end

  resource 'fr' do
    url 'http://ftpmirror.gnu.org/aspell/dict/fr/aspell-fr-0.50-3.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/fr/aspell-fr-0.50-3.tar.bz2'
    sha1 '4712f81069eb20763aaf855f73b2819f4805f132'
  end

  resource 'fy' do
    url 'http://ftpmirror.gnu.org/aspell/dict/fy/aspell6-fy-0.12-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/fy/aspell6-fy-0.12-0.tar.bz2'
    sha1 '8cfb4b506576b2a0d905d3abfa21bcd9bb2c2d67'
  end

  resource 'ga' do
    url 'http://ftpmirror.gnu.org/aspell/dict/ga/aspell5-ga-4.5-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/ga/aspell5-ga-4.5-0.tar.bz2'
    sha1 '0c4de4c1b55a73647ec5d20c2966bce8ebdb5a80'
  end

  resource 'gd' do
    url 'http://ftpmirror.gnu.org/aspell/dict/gd/aspell5-gd-0.1.1-1.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/gd/aspell5-gd-0.1.1-1.tar.bz2'
    sha1 '9b8593d4be9dd11c945a8f4e390bbf731897be76'
  end

  resource 'gl' do
    url 'http://ftpmirror.gnu.org/aspell/dict/gl/aspell6-gl-0.5a-2.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/gl/aspell6-gl-0.5a-2.tar.bz2'
    sha1 '5f4f6d9ec134f54527380027e29f9f726040cb38'
  end

  resource 'grc' do
    url 'http://ftpmirror.gnu.org/aspell/dict/grc/aspell6-grc-0.02-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/grc/aspell6-grc-0.02-0.tar.bz2'
    sha1 'e9139a1961e8d3de1b3a4d6be823d920c6477dd7'
  end

  resource 'gu' do
    url 'http://ftpmirror.gnu.org/aspell/dict/gu/aspell6-gu-0.03-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/gu/aspell6-gu-0.03-0.tar.bz2'
    sha1 'daf8bb6bcb84ad3d3fe5e03fffee572c41e17bb4'
  end

  resource 'gv' do
    url 'http://ftpmirror.gnu.org/aspell/dict/gv/aspell-gv-0.50-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/gv/aspell-gv-0.50-0.tar.bz2'
    sha1 '48bd30e8ce0cf229f7f369b20a304cf39a8cfc24'
  end

  resource 'he' do
    url 'http://ftpmirror.gnu.org/aspell/dict/he/aspell6-he-1.0-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/he/aspell6-he-1.0-0.tar.bz2'
    sha1 'cd6755053937b9c32995d7fa085cd269489f5484'
  end

  resource 'hi' do
    url 'http://ftpmirror.gnu.org/aspell/dict/hi/aspell6-hi-0.02-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/hi/aspell6-hi-0.02-0.tar.bz2'
    sha1 'af9ce9a4a97f2489a23d382bd72943b30bc3f6a4'
  end

  resource 'hil' do
    url 'http://ftpmirror.gnu.org/aspell/dict/hil/aspell5-hil-0.11-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/hil/aspell5-hil-0.11-0.tar.bz2'
    sha1 '2f25bd4d260420e8d94e50160eada2db175ae145'
  end

  resource 'hr' do
    url 'http://ftpmirror.gnu.org/aspell/dict/hr/aspell-hr-0.51-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/hr/aspell-hr-0.51-0.tar.bz2'
    sha1 '6788b9001287f9debd59803f5f9c5005b701f8f7'
  end

  resource 'hsb' do
    url 'http://ftpmirror.gnu.org/aspell/dict/hsb/aspell6-hsb-0.02-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/hsb/aspell6-hsb-0.02-0.tar.bz2'
    sha1 '3bac178029f97a73f37b7196b974815af559d7dc'
  end

  resource 'hu' do
    url 'http://ftpmirror.gnu.org/aspell/dict/hu/aspell6-hu-0.99.4.2-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/hu/aspell6-hu-0.99.4.2-0.tar.bz2'
    sha1 '0e020ed79ecfd5a88ec758482e31b757f54f60bf'
  end

  resource 'hus' do
    url 'http://ftpmirror.gnu.org/aspell/dict/hus/aspell6-hus-0.03-1.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/hus/aspell6-hus-0.03-1.tar.bz2'
    sha1 '5f54c8190375a12f50ab0df87997fa245ee7fa86'
  end

  resource 'hy' do
    url 'http://ftpmirror.gnu.org/aspell/dict/hy/aspell6-hy-0.10.0-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/hy/aspell6-hy-0.10.0-0.tar.bz2'
    sha1 'c24b59816222f5adff0c0f76316348524d93925b'
  end

  resource 'ia' do
    url 'http://ftpmirror.gnu.org/aspell/dict/ia/aspell-ia-0.50-1.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/ia/aspell-ia-0.50-1.tar.bz2'
    sha1 'aafc9e979c9b906b1b28b5001130a2b721835487'
  end

  resource 'id' do
    url 'http://ftpmirror.gnu.org/aspell/dict/id/aspell5-id-1.2-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/id/aspell5-id-1.2-0.tar.bz2'
    sha1 '7c4ce9252d74927a8b22a7af5260b3b22cc11a3c'
  end

  resource 'is' do
    url 'http://ftpmirror.gnu.org/aspell/dict/is/aspell-is-0.51.1-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/is/aspell-is-0.51.1-0.tar.bz2'
    sha1 '26c3a3bf047534cab163411735e8ff880b789ebe'
  end

  resource 'it' do
    url 'http://ftpmirror.gnu.org/aspell/dict/it/aspell6-it-2.2_20050523-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/it/aspell6-it-2.2_20050523-0.tar.bz2'
    sha1 '756e9c89f36eb0fdca951c818c2d3f2c52b9398d'
  end

  resource 'kn' do
    url 'http://ftpmirror.gnu.org/aspell/dict/kn/aspell6-kn-0.01-1.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/kn/aspell6-kn-0.01-1.tar.bz2'
    sha1 '89d078ba50fddca9d7b0e9fd88ec3ba42a2137cc'
  end

  resource 'ku' do
    url 'http://ftpmirror.gnu.org/aspell/dict/ku/aspell5-ku-0.20-1.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/ku/aspell5-ku-0.20-1.tar.bz2'
    sha1 'ca8e15136f52345a506ea70fe922c45806fe171f'
  end

  resource 'ky' do
    url 'http://ftpmirror.gnu.org/aspell/dict/ky/aspell6-ky-0.01-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/ky/aspell6-ky-0.01-0.tar.bz2'
    sha1 '310367cbba994992bd801f13827ecd45f9bd2227'
  end

  resource 'la' do
    url 'http://ftpmirror.gnu.org/aspell/dict/la/aspell6-la-20020503-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/la/aspell6-la-20020503-0.tar.bz2'
    sha1 '8f0ef073428955ffebff6dc31aaa84f13783b346'
  end

  resource 'lt' do
    url 'http://ftpmirror.gnu.org/aspell/dict/lt/aspell6-lt-1.2.1-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/lt/aspell6-lt-1.2.1-0.tar.bz2'
    sha1 '114c33dd042712dcef546b73dfbf889c1f7d7479'
  end

  resource 'lv' do
    url 'http://ftpmirror.gnu.org/aspell/dict/lv/aspell6-lv-0.5.5-1.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/lv/aspell6-lv-0.5.5-1.tar.bz2'
    sha1 'bbdebf5c7e959115dcbd1856327da11a84687d75'
  end

  resource 'mg' do
    url 'http://ftpmirror.gnu.org/aspell/dict/mg/aspell5-mg-0.03-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/mg/aspell5-mg-0.03-0.tar.bz2'
    sha1 '5a09a0a57c202433eac5cddf7a65c9095d8e748e'
  end

  resource 'mi' do
    url 'http://ftpmirror.gnu.org/aspell/dict/mi/aspell-mi-0.50-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/mi/aspell-mi-0.50-0.tar.bz2'
    sha1 '837551b776a1e52987c6963e2c6382be9c8faa00'
  end

  resource 'mk' do
    url 'http://ftpmirror.gnu.org/aspell/dict/mk/aspell-mk-0.50-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/mk/aspell-mk-0.50-0.tar.bz2'
    sha1 '08117e9d14543ca6d3626681d4b0eab51d53e727'
  end

  resource 'ml' do
    url 'http://ftpmirror.gnu.org/aspell/dict/ml/aspell6-ml-0.03-1.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/ml/aspell6-ml-0.03-1.tar.bz2'
    sha1 '5525ab8c2b956d62ffe9ad8651cab20841480e7e'
  end

  resource 'mn' do
    url 'http://ftpmirror.gnu.org/aspell/dict/mn/aspell6-mn-0.06-2.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/mn/aspell6-mn-0.06-2.tar.bz2'
    sha1 '39d7e9adcefaa0e1d9dac41ad4f86b66dc9257c7'
  end

  resource 'mr' do
    url 'http://ftpmirror.gnu.org/aspell/dict/mr/aspell6-mr-0.10-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/mr/aspell6-mr-0.10-0.tar.bz2'
    sha1 'bbcd0f26c93d37687284791eb7684a5277d6ff49'
  end

  resource 'ms' do
    url 'http://ftpmirror.gnu.org/aspell/dict/ms/aspell-ms-0.50-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/ms/aspell-ms-0.50-0.tar.bz2'
    sha1 '2f6bbe94bb717ee0009408f96800536891317d83'
  end

  resource 'mt' do
    url 'http://ftpmirror.gnu.org/aspell/dict/mt/aspell-mt-0.50-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/mt/aspell-mt-0.50-0.tar.bz2'
    sha1 '456b2fd40dd1d508947ed6ece14b00a61dd13138'
  end

  resource 'nb' do
    url 'http://ftpmirror.gnu.org/aspell/dict/nb/aspell-nb-0.50.1-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/nb/aspell-nb-0.50.1-0.tar.bz2'
    sha1 '40e2549973c192b82f782b9e0b1159e6b51464b3'
  end

  resource 'nds' do
    url 'http://ftpmirror.gnu.org/aspell/dict/nds/aspell6-nds-0.01-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/nds/aspell6-nds-0.01-0.tar.bz2'
    sha1 'b5cc46fac7a5436f9f52395c975ec66935b3ed54'
  end

  resource 'nl' do
    url 'http://ftpmirror.gnu.org/aspell/dict/nl/aspell-nl-0.50-2.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/nl/aspell-nl-0.50-2.tar.bz2'
    sha1 '651ac98c63ce342b19dd9c1a74a961500234bc0a'
  end

  resource 'nn' do
    url 'http://ftpmirror.gnu.org/aspell/dict/nn/aspell-nn-0.50.1-1.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/nn/aspell-nn-0.50.1-1.tar.bz2'
    sha1 '09c6cb3360ddbc231984e77608e911ee65a29b26'
  end

  resource 'ny' do
    url 'http://ftpmirror.gnu.org/aspell/dict/ny/aspell5-ny-0.01-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/ny/aspell5-ny-0.01-0.tar.bz2'
    sha1 'e2a654d042d028a7a7634ee3cbcd22c4e318b63f'
  end

  resource 'or' do
    url 'http://ftpmirror.gnu.org/aspell/dict/or/aspell6-or-0.03-1.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/or/aspell6-or-0.03-1.tar.bz2'
    sha1 'c1c8c48567dd5d28e48c00097b18859bd5a62d7d'
  end

  resource 'pa' do
    url 'http://ftpmirror.gnu.org/aspell/dict/pa/aspell6-pa-0.01-1.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/pa/aspell6-pa-0.01-1.tar.bz2'
    sha1 'b90300b077dbef4c1a25047ca9d84e8bc26681e3'
  end

  resource 'pl' do
    url 'http://ftpmirror.gnu.org/aspell/dict/pl/aspell6-pl-6.0_20061121-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/pl/aspell6-pl-6.0_20061121-0.tar.bz2'
    sha1 '907852b5fbcdc643a84389cdf412aaf2bebff0ce'
  end

  resource 'pt_BR' do
    url 'http://ftpmirror.gnu.org/aspell/dict/pt_BR/aspell6-pt_BR-20090702-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/pt_BR/aspell6-pt_BR-20090702-0.tar.bz2'
    sha1 'add1db9a6a908dccaad13a7fd85c3b202299ff26'
  end

  resource 'pt_PT' do
    url 'http://ftpmirror.gnu.org/aspell/dict/pt_PT/aspell6-pt_PT-20070510-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/pt_PT/aspell6-pt_PT-20070510-0.tar.bz2'
    sha1 'e136c2f411b582897437b06b9068c98ee333be41'
  end

  resource 'qu' do
    url 'http://ftpmirror.gnu.org/aspell/dict/qu/aspell6-qu-0.02-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/qu/aspell6-qu-0.02-0.tar.bz2'
    sha1 '4c530c06d0ae5cdcc857e02b7bf155dd0ccd80e9'
  end

  resource 'ro' do
    url 'http://ftpmirror.gnu.org/aspell/dict/ro/aspell5-ro-3.3-2.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/ro/aspell5-ro-3.3-2.tar.bz2'
    sha1 '98a64f2dade68bcff050b06567d09d40e727a2a2'
  end

  resource 'ru' do
    url 'http://ftpmirror.gnu.org/aspell/dict/ru/aspell6-ru-0.99f7-1.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/ru/aspell6-ru-0.99f7-1.tar.bz2'
    sha1 'e012fa03645f4ff1f5ba9df6b215ea4ffc6fd9cf'
  end

  resource 'rw' do
    url 'http://ftpmirror.gnu.org/aspell/dict/rw/aspell-rw-0.50-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/rw/aspell-rw-0.50-0.tar.bz2'
    sha1 '48248fa20e14b9369051360a37efdbadaf57d972'
  end

  resource 'sc' do
    url 'http://ftpmirror.gnu.org/aspell/dict/sc/aspell5-sc-1.0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/sc/aspell5-sc-1.0.tar.bz2'
    sha1 '4d94c9a3c5cc0c7f9af4e94074616073efa2374a'
  end

  resource 'sk' do
    url 'http://ftpmirror.gnu.org/aspell/dict/sk/aspell6-sk-2.01-2.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/sk/aspell6-sk-2.01-2.tar.bz2'
    sha1 '8eb0bd453a1db4ad12863b833a2a3512ef43d30b'
  end

  resource 'sl' do
    url 'http://ftpmirror.gnu.org/aspell/dict/sl/aspell-sl-0.50-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/sl/aspell-sl-0.50-0.tar.bz2'
    sha1 '028e41e39495ea32bc2318b9f91a9027e905479a'
  end

  resource 'sr' do
    url 'http://ftpmirror.gnu.org/aspell/dict/sr/aspell6-sr-0.02.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/sr/aspell6-sr-0.02.tar.bz2'
    sha1 '4827f2b386861730f1fdc2e70cad48c0715a94e2'
  end

  resource 'sv' do
    url 'http://ftpmirror.gnu.org/aspell/dict/sv/aspell-sv-0.51-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/sv/aspell-sv-0.51-0.tar.bz2'
    sha1 'bcae409db1b26387e7a1b552fb135b07c5c85f73'
  end

  resource 'sw' do
    url 'http://ftpmirror.gnu.org/aspell/dict/sw/aspell-sw-0.50-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/sw/aspell-sw-0.50-0.tar.bz2'
    sha1 '3f525cdd25bb74577dcd1db9393d8348cf4dd656'
  end

  resource 'ta' do
    url 'http://ftpmirror.gnu.org/aspell/dict/ta/aspell6-ta-20040424-1.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/ta/aspell6-ta-20040424-1.tar.bz2'
    sha1 '7d9a96985af7bde014462c8973e3f2a75ad6ed27'
  end

  resource 'te' do
    url 'http://ftpmirror.gnu.org/aspell/dict/te/aspell6-te-0.01-2.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/te/aspell6-te-0.01-2.tar.bz2'
    sha1 'b3a1df4c3e35fbdf0a2cd0db07c9b63372c9c94a'
  end

  resource 'tet' do
    url 'http://ftpmirror.gnu.org/aspell/dict/tet/aspell5-tet-0.1.1.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/tet/aspell5-tet-0.1.1.tar.bz2'
    sha1 '2b170ce5b4b866e61fd63a405ba7139b523a4e18'
  end

  resource 'tk' do
    url 'http://ftpmirror.gnu.org/aspell/dict/tk/aspell5-tk-0.01-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/tk/aspell5-tk-0.01-0.tar.bz2'
    sha1 '40f10a6f5f252b9fac8fb49fc7bd89cc6b2c3046'
  end

  resource 'tl' do
    url 'http://ftpmirror.gnu.org/aspell/dict/tl/aspell5-tl-0.02-1.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/tl/aspell5-tl-0.02-1.tar.bz2'
    sha1 'ae9d5fad56ba162db0a33a9ece0e348298f2e3c6'
  end

  resource 'tn' do
    url 'http://ftpmirror.gnu.org/aspell/dict/tn/aspell5-tn-1.0.1-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/tn/aspell5-tn-1.0.1-0.tar.bz2'
    sha1 '595c6c10f823cf713e80505ccd15577ee7a77a65'
  end

  resource 'tr' do
    url 'http://ftpmirror.gnu.org/aspell/dict/tr/aspell-tr-0.50-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/tr/aspell-tr-0.50-0.tar.bz2'
    sha1 '3913b0227a8f2ad28760b965106980b4a60520e9'
  end

  resource 'uk' do
    url 'http://ftpmirror.gnu.org/aspell/dict/uk/aspell6-uk-1.4.0-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/uk/aspell6-uk-1.4.0-0.tar.bz2'
    sha1 'b4697fa6c8879aa54364839b0dceae5d9dc46b89'
  end

  resource 'uz' do
    url 'http://ftpmirror.gnu.org/aspell/dict/uz/aspell6-uz-0.6-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/uz/aspell6-uz-0.6-0.tar.bz2'
    sha1 '4662f5ec36afec8efdc2a5b29f2d1328cc14b829'
  end

  resource 'vi' do
    url 'http://ftpmirror.gnu.org/aspell/dict/vi/aspell6-vi-0.01.1-1.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/vi/aspell6-vi-0.01.1-1.tar.bz2'
    sha1 'a497488786d796c677efd1bbf9df4c2eb511e728'
  end

  resource 'wa' do
    url 'http://ftpmirror.gnu.org/aspell/dict/wa/aspell-wa-0.50-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/wa/aspell-wa-0.50-0.tar.bz2'
    sha1 '06b5c0d0915b7e10db73c6aa548475ac1fcb3fcf'
  end

  resource 'yi' do
    url 'http://ftpmirror.gnu.org/aspell/dict/yi/aspell6-yi-0.01.1-1.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/yi/aspell6-yi-0.01.1-1.tar.bz2'
    sha1 'da49f8445ce89f656d9d75d5ee1a730126077896'
  end

  resource 'zu' do
    url 'http://ftpmirror.gnu.org/aspell/dict/zu/aspell-zu-0.50-0.tar.bz2'
    mirror 'http://ftp.gnu.org/gnu/aspell/dict/zu/aspell-zu-0.50-0.tar.bz2'
    sha1 '0cba6163d1a1b9f63b1f5eaaeba466cdaf5f0742'
  end

  option "all", "Install all available dictionaries"

  stable.resources.each_value do |r|
    option "with-lang-#{r.name}", "Install #{r.name} dictionary"
  end

  fails_with :llvm do
    build 2334
    cause "Segmentation fault during linking."
  end

  def available_languages
    resources.map(&:name)
  end

  def install
    system "./configure", "--prefix=#{prefix}"
    system "make install"

    ENV.prepend_path 'PATH', bin

    languages = []

    available_languages.each do |lang|
      languages << lang if build.with? "lang-#{lang}"
    end

    if build.include? 'all'
      languages.concat(available_languages)
    elsif languages.empty?
      languages << "en"
    end

    languages.each do |lang|
      resource(lang).stage do
        system "./configure", "--vars", "ASPELL=#{bin}/aspell", "PREZIP=#{bin}/prezip"
        system "make install"
      end
    end
  end
end
